package com.xxx.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication

@MapperScan(basePackages = "com.xxx.demo.mapper")//扫描mybatis的mapper接口
@EnableTransactionManagement//起动基于注解的声明式事务

public class ApartmentApplication {

    public static void main(String[] args) {
        SpringApplication.run(com.xxx.demo.ApartmentApplication.class, args);
    }

}
